<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>弹性盒布局flex</title>
		<style class="text/css">
		
		.flex-container{
			display: flex;
			flex-wrap: wrap;
			background-color: aquamarine;
		}
		
		.flex-container >  div{
			margin: 10px;
			padding: 20px;
			background-color: pink;
			color:  white;
		}
		
		</style>
	</head>
	<body>
		<div class="flex-container">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div>
			<div>7</div>
			<div>8</div>
			<div>9</div>
		</div>
	</body>
</html>
